<?php
declare (strict_types=1);

namespace app\api\validate;

use think\Validate;

class LoginValidate extends Validate
{
    /**
     * 定义验证规则
     * 格式：'字段名' =>  ['规则1','规则2'...]
     *
     * @var array
     */
    protected $rule = [
        'loing_type|登录类型'    => 'require|in:1,2,3',
        'username|账号'        => 'require|length:11',
        'mobile_mark|登录设备信息' => 'require',
    ];

}
